package com.tms.mapper.develop;

import com.tms.domain.UseRecord;
import com.tms.domain.index.UseHistory;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UseRecordMapper {

    int deleteByPrimaryKey(Integer id);

    int insert(UseRecord record);

    int insertSelective(UseRecord record);

    UseRecord selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(UseRecord record);

    int updateByPrimaryKey(UseRecord record);

    List<UseRecord> selectAll(@Param(value = "status") int status, @Param(value = "workcellId") int workcellId);

    UseRecord selectProductLineLastForToolId(int toolId);

    int selectAllRecord();

    int selectRecordToday();

    List<UseHistory> selectMonthNum();

    List<UseRecord> selectAllOut(int workcellId);
}